package cz.muni.fi.pa165.hauntedhouses.ejb;

import cz.muni.fi.pa165.hauntedhouses.entity.Ability;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Petr Suchý (373947)
 */
@Stateless
public class AbilityServiceEJB implements AbilityServiceEJBLocal{
    
    @EJB
    private AbilityDaoEJB abilityDao;

    public void setAbilityDao(AbilityDaoEJB ade){
        abilityDao=ade;
    }
    
    @Override
    public void create(Ability ability) {
     abilityDao.create(ability);
        
    }

    @Override
    public void remove(Ability ability) {
        abilityDao.remove(ability);
    }

    @Override
    public Ability get(Long id) {
        return abilityDao.get(id);
    }

    @Override
    public List<Ability> findAll() {
        return abilityDao.findAll();
    }

}
